package com.zhangmeng.callBack;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import com.zhangmeng.service.Connection;
import com.zhangmeng.utils.ByteBufferUtil;

import java.io.IOException;

/**
 * @author zm
 * @date 2025/2/27 15:19
 * @version: 1.0
 */
public class DoConnectionBegin {
    private final Log log = LogFactory.get();
    public void run(Connection connection){
        log.info("DoConnecionBegin is Called ... ");
        try {
            ByteBufferUtil.sendMsg(2, "DoConnection BEGIN...".getBytes(), connection.GetTCPConnection().getOutputStream());
        } catch (IOException e) {
            log.error(e.getMessage());
        }
    }

}
